Optimal. Leaf size=119 \[ \frac {a^2 x^4}{4}-\frac {i a b \text {Li}_2\left (-i e^{d x^2+c}\right )}{d^2}+\frac {i a b \text {Li}_2\left (i e^{d x^2+c}\right )}{d^2}+\frac {2 a b x^2 \tan ^{-1}\left (e^{c+d x^2}\right )}{d}-\frac {b^2 \log \left (\cosh \left (c+d x^2\right )\right )}{2 d^2}+\frac {b^2 x^2 \tanh \left (c+d x^2\right )}{2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.16, antiderivative size = 119, normalized size of antiderivative = 1.00, number of steps used = 10, number of rules used = 7, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.389, Rules used = {5436, 4190, 4180, 2279, 2391, 4184, 3475} \[ -\frac {i a b \text {PolyLog}\left (2,-i e^{c+d x^2}\right )}{d^2}+\frac {i a b \text {PolyLog}\left (2,i e^{c+d x^2}\right )}{d^2}+\frac {a^2 x^4}{4}+\frac {2 a b x^2 \tan ^{-1}\left (e^{c+d x^2}\right )}{d}-\frac {b^2 \log \left (\cosh \left (c+d x^2\right )\right )}{2 d^2}+\frac {b^2 x^2 \tanh \left (c+d x^2\right )}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2279
Rule 2391
Rule 3475
Rule 4180
Rule 4184
Rule 4190
Rule 5436
Rubi steps
\begin {align*} \int x^3 \left (a+b \text {sech}\left (c+d x^2\right )\right )^2 \, dx &=\frac {1}{2} \operatorname {Subst}\left (\int x (a+b \text {sech}(c+d x))^2 \, dx,x,x^2\right )\\ &=\frac {1}{2} \operatorname {Subst}\left (\int \left (a^2 x+2 a b x \text {sech}(c+d x)+b^2 x \text {sech}^2(c+d x)\right ) \, dx,x,x^2\right )\\ &=\frac {a^2 x^4}{4}+(a b) \operatorname {Subst}\left (\int x \text {sech}(c+d x) \, dx,x,x^2\right )+\frac {1}{2} b^2 \operatorname {Subst}\left (\int x \text {sech}^2(c+d x) \, dx,x,x^2\right )\\ &=\frac {a^2 x^4}{4}+\frac {2 a b x^2 \tan ^{-1}\left (e^{c+d x^2}\right )}{d}+\frac {b^2 x^2 \tanh \left (c+d x^2\right )}{2 d}-\frac {(i a b) \operatorname {Subst}\left (\int \log \left (1-i e^{c+d x}\right ) \, dx,x,x^2\right )}{d}+\frac {(i a b) \operatorname {Subst}\left (\int \log \left (1+i e^{c+d x}\right ) \, dx,x,x^2\right )}{d}-\frac {b^2 \operatorname {Subst}\left (\int \tanh (c+d x) \, dx,x,x^2\right )}{2 d}\\ &=\frac {a^2 x^4}{4}+\frac {2 a b x^2 \tan ^{-1}\left (e^{c+d x^2}\right )}{d}-\frac {b^2 \log \left (\cosh \left (c+d x^2\right )\right )}{2 d^2}+\frac {b^2 x^2 \tanh \left (c+d x^2\right )}{2 d}-\frac {(i a b) \operatorname {Subst}\left (\int \frac {\log (1-i x)}{x} \, dx,x,e^{c+d x^2}\right )}{d^2}+\frac {(i a b) \operatorname {Subst}\left (\int \frac {\log (1+i x)}{x} \, dx,x,e^{c+d x^2}\right )}{d^2}\\ &=\frac {a^2 x^4}{4}+\frac {2 a b x^2 \tan ^{-1}\left (e^{c+d x^2}\right )}{d}-\frac {b^2 \log \left (\cosh \left (c+d x^2\right )\right )}{2 d^2}-\frac {i a b \text {Li}_2\left (-i e^{c+d x^2}\right )}{d^2}+\frac {i a b \text {Li}_2\left (i e^{c+d x^2}\right )}{d^2}+\frac {b^2 x^2 \tanh \left (c+d x^2\right )}{2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 3.20, size = 273, normalized size = 2.29 \[ \frac {\cosh \left (c+d x^2\right ) \left (a+b \text {sech}\left (c+d x^2\right )\right )^2 \left (d x^2 \cosh \left (c+d x^2\right ) \left (a^2 d x^2+2 b^2 \tanh (c)\right )+4 a b \cosh \left (c+d x^2\right ) \left (\frac {\text {csch}(c) \left (\text {Li}_2\left (-e^{-d x^2-\tanh ^{-1}(\coth (c))}\right )-\text {Li}_2\left (e^{-d x^2-\tanh ^{-1}(\coth (c))}\right )+\left (\tanh ^{-1}(\coth (c))+d x^2\right ) \left (\log \left (1-e^{-\tanh ^{-1}(\coth (c))-d x^2}\right )-\log \left (e^{-\tanh ^{-1}(\coth (c))-d x^2}+1\right )\right )\right )}{\sqrt {-\text {csch}^2(c)}}-2 \tanh ^{-1}(\coth (c)) \tan ^{-1}\left (\cosh (c) \tanh \left (\frac {d x^2}{2}\right )+\sinh (c)\right )\right )-2 b^2 d x^2 \tanh (c) \cosh \left (c+d x^2\right )+2 b^2 d x^2 \text {sech}(c) \sinh \left (d x^2\right )-2 b^2 \cosh \left (c+d x^2\right ) \left (\log \left (\cosh \left (c+d x^2\right )\right )-d x^2 \tanh (c)\right )\right )}{4 d^2 \left (a \cosh \left (c+d x^2\right )+b\right )^2} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.48, size = 782, normalized size = 6.57 \[ \frac {a^{2} d^{2} x^{4} + 4 \, b^{2} c + {\left (a^{2} d^{2} x^{4} + 4 \, b^{2} d x^{2} + 4 \, b^{2} c\right )} \cosh \left (d x^{2} + c\right )^{2} + 2 \, {\left (a^{2} d^{2} x^{4} + 4 \, b^{2} d x^{2} + 4 \, b^{2} c\right )} \cosh \left (d x^{2} + c\right ) \sinh \left (d x^{2} + c\right ) + {\left (a^{2} d^{2} x^{4} + 4 \, b^{2} d x^{2} + 4 \, b^{2} c\right )} \sinh \left (d x^{2} + c\right )^{2} + {\left (4 i \, a b \cosh \left (d x^{2} + c\right )^{2} + 8 i \, a b \cosh \left (d x^{2} + c\right ) \sinh \left (d x^{2} + c\right ) + 4 i \, a b \sinh \left (d x^{2} + c\right )^{2} + 4 i \, a b\right )} {\rm Li}_2\left (i \, \cosh \left (d x^{2} + c\right ) + i \, \sinh \left (d x^{2} + c\right )\right ) + {\left (-4 i \, a b \cosh \left (d x^{2} + c\right )^{2} - 8 i \, a b \cosh \left (d x^{2} + c\right ) \sinh \left (d x^{2} + c\right ) - 4 i \, a b \sinh \left (d x^{2} + c\right )^{2} - 4 i \, a b\right )} {\rm Li}_2\left (-i \, \cosh \left (d x^{2} + c\right ) - i \, \sinh \left (d x^{2} + c\right )\right ) + {\left (-4 i \, a b c - 2 \, {\left (2 i \, a b c + b^{2}\right )} \cosh \left (d x^{2} + c\right )^{2} - 4 \, {\left (2 i \, a b c + b^{2}\right )} \cosh \left (d x^{2} + c\right ) \sinh \left (d x^{2} + c\right ) - 2 \, {\left (2 i \, a b c + b^{2}\right )} \sinh \left (d x^{2} + c\right )^{2} - 2 \, b^{2}\right )} \log \left (\cosh \left (d x^{2} + c\right ) + \sinh \left (d x^{2} + c\right ) + i\right ) + {\left (4 i \, a b c - 2 \, {\left (-2 i \, a b c + b^{2}\right )} \cosh \left (d x^{2} + c\right )^{2} - 4 \, {\left (-2 i \, a b c + b^{2}\right )} \cosh \left (d x^{2} + c\right ) \sinh \left (d x^{2} + c\right ) - 2 \, {\left (-2 i \, a b c + b^{2}\right )} \sinh \left (d x^{2} + c\right )^{2} - 2 \, b^{2}\right )} \log \left (\cosh \left (d x^{2} + c\right ) + \sinh \left (d x^{2} + c\right ) - i\right ) + {\left (-4 i \, a b d x^{2} - 4 i \, a b c + {\left (-4 i \, a b d x^{2} - 4 i \, a b c\right )} \cosh \left (d x^{2} + c\right )^{2} + {\left (-8 i \, a b d x^{2} - 8 i \, a b c\right )} \cosh \left (d x^{2} + c\right ) \sinh \left (d x^{2} + c\right ) + {\left (-4 i \, a b d x^{2} - 4 i \, a b c\right )} \sinh \left (d x^{2} + c\right )^{2}\right )} \log \left (i \, \cosh \left (d x^{2} + c\right ) + i \, \sinh \left (d x^{2} + c\right ) + 1\right ) + {\left (4 i \, a b d x^{2} + 4 i \, a b c + {\left (4 i \, a b d x^{2} + 4 i \, a b c\right )} \cosh \left (d x^{2} + c\right )^{2} + {\left (8 i \, a b d x^{2} + 8 i \, a b c\right )} \cosh \left (d x^{2} + c\right ) \sinh \left (d x^{2} + c\right ) + {\left (4 i \, a b d x^{2} + 4 i \, a b c\right )} \sinh \left (d x^{2} + c\right )^{2}\right )} \log \left (-i \, \cosh \left (d x^{2} + c\right ) - i \, \sinh \left (d x^{2} + c\right ) + 1\right )}{4 \, {\left (d^{2} \cosh \left (d x^{2} + c\right )^{2} + 2 \, d^{2} \cosh \left (d x^{2} + c\right ) \sinh \left (d x^{2} + c\right ) + d^{2} \sinh \left (d x^{2} + c\right )^{2} + d^{2}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b \operatorname {sech}\left (d x^{2} + c\right ) + a\right )}^{2} x^{3}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.44, size = 0, normalized size = 0.00 \[ \int x^{3} \left (a +b \,\mathrm {sech}\left (d \,x^{2}+c \right )\right )^{2}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {1}{4} \, a^{2} x^{4} + \frac {1}{2} \, {\left (\frac {2 \, x^{2} e^{\left (2 \, d x^{2} + 2 \, c\right )}}{d e^{\left (2 \, d x^{2} + 2 \, c\right )} + d} - \frac {\log \left ({\left (e^{\left (2 \, d x^{2} + 2 \, c\right )} + 1\right )} e^{\left (-2 \, c\right )}\right )}{d^{2}}\right )} b^{2} + 4 \, a b \int \frac {x^{3} e^{\left (d x^{2} + c\right )}}{e^{\left (2 \, d x^{2} + 2 \, c\right )} + 1}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int x^3\,{\left (a+\frac {b}{\mathrm {cosh}\left (d\,x^2+c\right )}\right )}^2 \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int x^{3} \left (a + b \operatorname {sech}{\left (c + d x^{2} \right )}\right )^{2}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________